package gbench.appdemo.crawler.junit;

import java.util.stream.Stream;

import org.apache.lucene.search.BooleanClause;
import org.junit.jupiter.api.Test;

import gbench.appdemo.crawler.srch.SrchUtils;
import static gbench.common.tree.LittleTree.IRecord.*;

public class JunitSrchUtils {
    
    @Test
    public void foo() {
        Stream.of("-name*","~name=","+name?","name")
        .map(e->REC("original",e).add(SrchUtils.parse2Term(e)))
        .forEach(e->{
            System.out.println(e+""+e.get("op",BooleanClause.Occur.class).name());
        });
       
    }

}
